import socket
from config import *
class ClientSocket(socket.socket):

    def __init__(self):
        super(ClientSocket, self).__init__(socket.AF_INET, socket.SOCK_STREAM)

    def connect(self, host=Client_IP, port=Client_Port):
        super(ClientSocket, self).connect((host, port))

    def recv_data(self):
        return self.recv(512).decode('utf-8')

    def send_data(self, data):
        return self.send(data.encode('utf-8'))
